package com.snow.demo.spring.processor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * @author -J
 * @since 2024/1/20 20:57
 */
public class DemoBeanBeanFactoryPostProcessor implements BeanFactoryPostProcessor {

    /**
     * AbstractApplicationContext#invokeBeanFactoryPostProcessors
     * PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(beanFactory, getBeanFactoryPostProcessors());
     * @param beanFactory the bean factory used by the application context
     * @throws BeansException
     */
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        System.out.println("DemoBeanBeanFactoryPostProcessor-postProcessBeanFactory");
    }
}
